package com.bb.services.impl;

import org.apache.ibatis.session.SqlSession;

import com.bb.dao.UserDao;
import com.bb.dao.UserLoginDao;
import com.bb.pojo.User;
import com.bb.service.UserLoginService;
import com.bb.util.GetSqlSessionUtil;

public class UserLoginServiceImpl implements UserLoginService{

	@Override
	/*登录*/
	public User chkLogin(String username){
		SqlSession sqlSession = new GetSqlSessionUtil().getSqlSession();
		UserLoginDao mapper = sqlSession.getMapper(UserLoginDao.class);
		User userLogin = mapper.userLogin(username);
		return userLogin;
	}

}
